// pages/course/courseItem/itemDetail/itemDetail.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    h5Url: "",
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var msgid = options.MsgID;
    var userid = getApp().globalData.userId;
    if(userid==""){
      wx.showToast({
        title: '请先登陆',
      });
            setTimeout(function(){
        wx.navigateBack({
          delta: 1
        });
      },1000);
    }
    var url = getApp().globalData.basePath.appPath + "/MobileWeb/courseHomePage/index.html?msgid=" + msgid + "&userid=" + userid;
   
    this.setData({
      h5Url: url
    });
  },

})